﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Xml;
using XStockQuote;

public partial class Default5 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
    }

    protected void btnOK_Click(object sender, EventArgs e)
    {
        XStockQuote.StockQuote service = new StockQuote();
        string result = service.GetQuote(txtStock.Text);

        XmlDocument doc = new XmlDocument();
        doc.LoadXml(result);

        txtInfo.Text = doc.OuterXml;
    }
}